package edu.hm.activebadge.rfid.adaption.server;


import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class ServerParameter {
	
	private static Properties properties;

	public ServerParameter(){
		properties = new Properties();
		BufferedInputStream stream;
		try {
			stream = new BufferedInputStream(new FileInputStream("server.properties"));
			properties.load(stream);
			stream.close();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
	
	public static String getServerPort(){
		return properties.getProperty("serverport");
	}
	
	public static String getEntityInterpretationFile(){
		return properties.getProperty("EntityInterpretationCSV");
	}
	
	public static String getActionInterpretationFile(){
		return properties.getProperty("ActionInterpretationCSV");
	}
	
	public static String getAlarmPort(){
		return properties.getProperty("alarmport");
	}
	
	public static String getClient(){
		return properties.getProperty("client");
	}
}
